class MusicPlayer():

    def __new__(cls,*args,**kwargs):
        # 创建对象时new方法会被自动调用
        print("创建对象，分配空间")
        # # 为对象分配空间
        # instance = super().__new__(cls)
        # # 返回对象引用
        # return instance
        return super().__new__(cls)
    
    def __init__(self):
        print("播放器初始化")


player = MusicPlayer()

print(player)